<?php 
class Help extends CI_Controller {
    public function __construct() {
        parent::__construct();
    }
    
    public function index() {
        $this->load->view('header');
        $this->load->view('navbar');
        $this->load->view('help/help');
        $this->load->view('footer');
    }
    
    public function about() {
        redirect('help#about');
    }
    
    public function guide() {
        redirect('help#guide');
    }
    
    public function regulation() {
        redirect('help#regulation');
    }

    public function privacy() {
        redirect('help#privacy');
    }
    
    public function contact() {
        redirect('help#contact');
    }
    
    public function feedback() {
        redirect('help#feedback');
    }
    
    public function do_feedback() {
        $this->load->model('feedback_model');
        $res = $this->feedback_model->insert($this->input->post());
        if ($res === TRUE) {
            $this->output->set_output('OK');
        } else {
            $this->output->set_output('ERROR');
        }
    }
    
    public function construct() {
        $this->load->view('header');
        $this->load->view('navbar');
        $this->load->view('construct');
        $this->load->view('footer');
    }    
}
?>